package com.autumn.runtime.session;

import com.autumn.runtime.session.claims.DefaultIdentityClaims;
import com.autumn.runtime.session.claims.IdentityClaims;

/**
 * 空会话实现
 * 
 * @author 老码农
 *
 *         2017-11-03 10:56:50
 */
public class NullAutumnSession implements IAutumnSession {

	/**
	 * 	
	 */
	public NullAutumnSession() {

	}

	/**
	 * 获取实例
	 */
	public static final IAutumnSession INSTANCE = new NullAutumnSession();

	@Override
	public Long getUserId() {
		return null;
	}

	@Override
	public String getUserName() {
		return null;
	}	

	@Override
	public IdentityClaims getIdentityClaims() {
		return DefaultIdentityClaims.DEFAULT_IDENTITY_CLAIMS;
	}

	@Override
	public String getIdentityType() {		
		return null;
	}	
}
